<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>fontsel</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="fontsel">module: fontsel</a></h1><p><b>A font selector and loader</b><p>
This module implements a font selector dialog.  
(<a href="../include/depui/fontsel.h">../include/depui/fontsel.h</a>)<p>Part of the <a href="depui.htm">depui</a> library.<ul><li>
<a name="MX_FONTSEL"><code>MX_FONTSEL</code></a>
<p>
<p><b>A font seletion window  </b><p>
(<a href="../include/depui/fontsel.h">../include/depui/fontsel.h</a>)<p></li>
<li>
<a name=" define mx_fontsel(id)"><code># define mx_fontsel(id)</code></a>
<p>
<p><b>Create a font selector window</b><p>
This macro creates a font selector with the specified id number.  
(<a href="../include/depui/fontsel.h">../include/depui/fontsel.h</a>)<p></li>
<li>
<a name="void mx_fontsel_refresh(MX_FONTSEL* fsel)"><code>void mx_fontsel_refresh(MX_FONTSEL* fsel)</code></a>
<p>
<p>This function refreshes a font selector dialog with the currently
available fonts.  This function should be called after creating the font
selector and before it gets displayed or gets an MX_GEOMETRY event.  
(<a href="../include/depui/fontsel.c">../include/depui/fontsel.c</a>)<p></li>
<li>
<a name="MX_FONTSEL* mx_fontselwin(MX_FONTSEL* fsel, size_t size, MX_HANDLER handler, int theid)"><code>MX_FONTSEL* mx_fontselwin(MX_FONTSEL* fsel, size_t size, MX_HANDLER handler, int theid)</code></a>
<p>
<p>mx_text_set(&fsel->_fonts, "fonts", -1, 0);  
(<a href="../include/depui/fontsel.c">../include/depui/fontsel.c</a>)<p></li>
<li>
<a name="MX_GUIFONT* mx_fontsel_info(const int idnum)"><code>MX_GUIFONT* mx_fontsel_info(const int idnum)</code></a>
<p>
<p><b>Font selection information</b><p>
When a font has been chosen from a font selector dialog the a 
MX_FONTSEL_OK event is sent to the parent window.  This function can be called
when handling that event to determine the font selected.  
(<a href="../include/depui/fontsel.c">../include/depui/fontsel.c</a>)

<p>This function should only be called when handling an MX_FONTSEL_event.  
(<a href="../include/depui/fontsel.c">../include/depui/fontsel.c</a>)

<p>The sepcified id number has to match the one with the selected font.  
(<a href="../include/depui/fontsel.c">../include/depui/fontsel.c</a>)<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
